package com.weasel.weixin.commons.menu.builder;

/**普通热键builder，用于构建带有二级菜单的按键
 * Created by Dylan on 2015/10/9.
 */
public class CommonButtonBuilder extends AbstractButtonBuilder {

    public CommonButtonBuilder() {
        super("");
    }

    public CommonButtonBuilder name(String name){
        button.setName(name);
        return this;
    }

    public CommonButtonBuilder button(AbstractButtonBuilder buttonBuilder){

        button.addSubButton(buttonBuilder.build());
        return this;
    }


}
